package com.lxh.cptp.handler;

import com.lxh.cptp.utils.JsonUtils;
import me.chanjar.weixin.cp.bean.WxCpTpXmlPackage;
import me.chanjar.weixin.cp.bean.WxCpXmlMessage;
import me.chanjar.weixin.cp.bean.WxCpXmlOutMessage;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * created by lanxinghua@2dfire.com on 2020/2/23
 */
@Component
public class LogHandler extends AbstractHandler {

  @Override
  public WxCpXmlOutMessage handle(WxCpTpXmlPackage wxMessage, Map<String, Object> context) {
    this.logger.info("接收到请求消息，内容：{}", JsonUtils.toJson(wxMessage));
    return null;
  }
}
